package com.sumainfor.pc.market.controller.Feign;

import com.sumainfor.pc.market.service.OwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/6/21 16:14
 * @Description:
 */
@RestController
@RequestMapping("/key/owner")
public class OwnerFeignController {

    @Autowired
    OwnerService OwnerService;

    /**
     * 功能描述:
     * 获取所有的业主和业主合同资料
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/6/21 16:18
     */
    @GetMapping("/getOwnerDealList")
    public List<Map<String,Object>>getOwnerDealList(){
        return OwnerService.getOwnerDealList();
    }

    @PostMapping("/getOwDelListZTime")
    public List<Map<String,Object>> getOwDelListZTime(@RequestBody Map<String,Object> params){
        return OwnerService.getOwDelListZTime(params);
    }


}
